<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>atestcasefordoxy: cubE/cubECamera.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">atestcasefordoxy
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">cubE/cubECamera.h</div>  </div>
</div>
<div class="contents">
<a href="cub_e_camera_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef CUBY_CAMERA_H</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define CUBY_CAMERA_H</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;<a class="code" href="cub_e_primitive_8h.html">cubEPrimitive.h</a>&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;<a class="code" href="cub_e_math_8h.html">cubEMath.h</a>&gt;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a><a class="code" href="namespace_cub_e.html">00019</a> <span class="keyword">namespace </span>CubE
<a name="l00020"></a>00020 {
<a name="l00021"></a>00021    <span class="keyword">class </span><a class="code" href="class_cub_e_1_1_camera.html">Camera</a>
<a name="l00022"></a>00022    {
<a name="l00023"></a>00023      <span class="keyword">public</span>:
<a name="l00024"></a>00024       <a class="code" href="class_cub_e_1_1_camera.html#a59caac886cf568237f599a0a157776d4">Camera</a>(<span class="keywordtype">void</span>);
<a name="l00025"></a>00025       <a class="code" href="class_cub_e_1_1_camera.html#a59caac886cf568237f599a0a157776d4">Camera</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; pos, <span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; ori, <span class="keywordtype">float</span> near_dist, <span class="keywordtype">float</span> far_dist);
<a name="l00026"></a>00026       <a class="code" href="class_cub_e_1_1_camera.html#a59caac886cf568237f599a0a157776d4">Camera</a>(<span class="keywordtype">float</span> pos_x, <span class="keywordtype">float</span> pos_y, <span class="keywordtype">float</span> pos_z, <span class="keywordtype">float</span> ori_x, <span class="keywordtype">float</span> ori_y, <span class="keywordtype">float</span> ori_z, <span class="keywordtype">float</span> near_dist, <span class="keywordtype">float</span> far_dist);
<a name="l00027"></a>00027       <a class="code" href="class_cub_e_1_1_camera.html#a507201b9436c0d193a97703fc20cd9b9">~Camera</a>(<span class="keywordtype">void</span>);
<a name="l00028"></a>00028 
<a name="l00029"></a>00029       <span class="comment">//Move &amp; rotate , at camera view space coordinates</span>
<a name="l00030"></a>00030       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a8e77457e246b8979a13fbf65f0301c72">Move</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; vec);
<a name="l00031"></a>00031       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a8e77457e246b8979a13fbf65f0301c72">Move</a>(<span class="keywordtype">float</span> vec_x, <span class="keywordtype">float</span> vec_y, <span class="keywordtype">float</span> vec_z);
<a name="l00032"></a>00032       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a3064205a2545c1d35e91cb417dcbd8df">Rotate</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; axis, <span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_degree.html">Degree</a>&amp; angle_degree);
<a name="l00033"></a>00033       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a3064205a2545c1d35e91cb417dcbd8df">Rotate</a>(<span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a>&amp; axis, <span class="keyword">const</span> <a class="code" href="class_cub_e_1_1_radian.html">Radian</a>&amp; angle_degree);
<a name="l00034"></a>00034       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a3064205a2545c1d35e91cb417dcbd8df">Rotate</a>(<span class="keywordtype">float</span> axis_x, <span class="keywordtype">float</span> axis_y, <span class="keywordtype">float</span> axis_z, <span class="keywordtype">float</span> angle_degree);
<a name="l00035"></a>00035       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a9e3679a17a1b80c222619086d9532791">Roll</a>(<span class="keywordtype">float</span> radian);  <span class="comment">//rotate around front-vec</span>
<a name="l00036"></a>00036       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#ae947b51c7f3a5785618b96e68f98d55d">Pitch</a>(<span class="keywordtype">float</span> radian); <span class="comment">//rotate around right-vec</span>
<a name="l00037"></a>00037       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a488ef17c8b5aa37e4be742ff7800c0f1">Yaw</a>(<span class="keywordtype">float</span> radian);   <span class="comment">//rotate around up-vec</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039       <span class="comment">//getters</span>
<a name="l00040"></a><a class="code" href="class_cub_e_1_1_camera.html#ae409ec3a6dba3c9188a9da3fa8d8019a">00040</a>       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_camera.html#ae409ec3a6dba3c9188a9da3fa8d8019a">GetPosition</a>(<span class="keywordtype">void</span>){<span class="keywordflow">return</span> _mPosition;}
<a name="l00041"></a>00041       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#ae409ec3a6dba3c9188a9da3fa8d8019a">GetPosition</a>(<span class="keywordtype">float</span>&amp; pos_x, <span class="keywordtype">float</span>&amp; pos_y, <span class="keywordtype">float</span>&amp; pos_z);
<a name="l00042"></a>00042       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_camera.html#a7fbd69fe73b818ccf276d82fe5a43a0d">GetDirection</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00043"></a>00043       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a7fbd69fe73b818ccf276d82fe5a43a0d">GetDirection</a>(<span class="keywordtype">float</span>&amp; dir_x, <span class="keywordtype">float</span>&amp; dir_y, <span class="keywordtype">float</span>&amp; dir_z) <span class="keyword">const</span> ;
<a name="l00044"></a>00044       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> <a class="code" href="class_cub_e_1_1_camera.html#a90fec4704a5ed001e102844599fa5682">GetLookat</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00045"></a>00045       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a90fec4704a5ed001e102844599fa5682">GetLookat</a>(<span class="keywordtype">float</span>&amp; lookat_x, <span class="keywordtype">float</span>&amp; lookat_y, <span class="keywordtype">float</span>&amp; lookat_z) <span class="keyword">const</span>;
<a name="l00046"></a><a class="code" href="class_cub_e_1_1_camera.html#aa6c785b39e5559962730f0538fef70ce">00046</a>       <span class="keywordtype">float</span> <a class="code" href="class_cub_e_1_1_camera.html#aa6c785b39e5559962730f0538fef70ce">GetNearClipDistance</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> _mNearClipDist;}
<a name="l00047"></a><a class="code" href="class_cub_e_1_1_camera.html#ad298e7bb2a273dec9997f393c54edca0">00047</a>       <span class="keywordtype">float</span> <a class="code" href="class_cub_e_1_1_camera.html#ad298e7bb2a273dec9997f393c54edca0">GetFarClipDistance</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> _mFarClipDist;}
<a name="l00048"></a>00048 
<a name="l00049"></a>00049       <span class="comment">//setters</span>
<a name="l00050"></a>00050       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a2c1e4602050d063d4bd6f99fd19452e5">SetPosition</a>(<a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> pos);
<a name="l00051"></a>00051       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a2c1e4602050d063d4bd6f99fd19452e5">SetPosition</a>(<span class="keywordtype">float</span> pos_x, <span class="keywordtype">float</span> pos_y, <span class="keywordtype">float</span> pos_z);
<a name="l00052"></a>00052       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a046144cb43218e6e2e20e1f17706d419">SetDirection</a>(<a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> dir);
<a name="l00053"></a>00053       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a046144cb43218e6e2e20e1f17706d419">SetDirection</a>(<span class="keywordtype">float</span> dir_x, <span class="keywordtype">float</span> dir_y, <span class="keywordtype">float</span> dir_z);
<a name="l00054"></a>00054       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#af20a90235e1522c191646f08377ffbdc">SetNearClipDistance</a>(<span class="keywordtype">float</span> near);
<a name="l00055"></a>00055       <span class="keywordtype">void</span> <a class="code" href="class_cub_e_1_1_camera.html#a6cdcb275cdacda0ca54f544cf82b6241">SetFarClipDistance</a>(<span class="keywordtype">float</span> far);
<a name="l00056"></a>00056 
<a name="l00057"></a>00057       
<a name="l00058"></a>00058      <span class="keyword">private</span>:
<a name="l00059"></a>00059       <a class="code" href="class_cub_e_1_1_vector3.html">Vector3</a> _mPosition;
<a name="l00060"></a>00060       <a class="code" href="class_cub_e_1_1_quaternion.html">Quaternion</a> _mOrientation;
<a name="l00061"></a>00061       <span class="keywordtype">float</span> _mNearClipDist;
<a name="l00062"></a>00062       <span class="keywordtype">float</span> _mFarClipDist;
<a name="l00063"></a>00063    };
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 
<a name="l00069"></a>00069    <span class="keyword">class </span>TargetCamera : <span class="keyword">public</span> Camera
<a name="l00070"></a>00070    {
<a name="l00071"></a>00071      <span class="keyword">public</span>:
<a name="l00072"></a>00072       <a class="code" href="class_cub_e_1_1_target_camera.html#a2638dcadc64e8931c135b4e3836490e3">TargetCamera</a>(<span class="keywordtype">void</span>);
<a name="l00073"></a>00073       <a class="code" href="class_cub_e_1_1_target_camera.html#adebd0058ec520a4522ddfb579f991010">~TargetCamera</a>(<span class="keywordtype">void</span>);
<a name="l00074"></a>00074       
<a name="l00075"></a>00075      <span class="keyword">private</span>:
<a name="l00076"></a>00076       Vector3 _mTargetPostion;
<a name="l00077"></a>00077       
<a name="l00078"></a>00078    };
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 }
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 <span class="preprocessor">#endif //CUBY_CAMERA_H</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Feb 5 2012 00:51:24 for atestcasefordoxy by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5
</small></address>

</body>
</html>
